class_name HoldUndamagablePotion
extends BaseHoldItem


func use():
	var player = holder as Player
	var config = item_data.item_config as ConsumableConfig
	
	player.remove_buff("buff_undamagable")
	var buff_inst = player.add_buff("buff_undamagable", player) as BaseBuff
	buff_inst.duration = config.undamagable_duration
	buff_inst.start_buff()
